package com.woniu.payservice.controller;

import com.woniu.payservice.entity.Orders;
import com.woniu.payservice.service.OrdersService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("orders")
public class OrdersController {
    @Resource
    private OrdersService ordersService;

    @GetMapping("selectOne")
    public Orders selectOne(Integer id) {
        return ordersService.queryById(id);
    }

}